package com.yycwxt.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("dct_operatefee")
public class OperateFee {
    @TableId(type = IdType.AUTO)
    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    private Integer id;

    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    @ExcelProperty("类型")
    private String type;

    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    @ExcelProperty("仓库编码")
    private String storeCode;

    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    @ExcelProperty("库房名称")
    private String storeName;

    @NotBlank(message = "不能为空")
    @NotNull(message = "不能为空")
    @ExcelProperty("费用金额")
    private BigDecimal fee;

    @ExcelProperty("备注")
    private String remark;

    @TableField(insertStrategy = FieldStrategy.NEVER)
    private LocalDateTime created;

}
